package com.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.entity.Notice;
import com.mapper.NoticeMapper;
import com.service.NoticeService;

@Service
public class NoticeServiceImpl implements NoticeService{

	@Resource
	private NoticeMapper noticeMapper;
	
	@Override
	public List<Notice> listNotice() {

		return noticeMapper.listNotice();
	}

	@Override
	public void addNotice(Notice notice) {
	
		noticeMapper.addNotice(notice);
	}

	@Override
	public void deleteNotice(Integer id) {
	
		noticeMapper.deleteNotice(id);
	}

	@Override
	public Notice getNoticeById(Integer id) {
		
		return noticeMapper.getNoticeById(id);
	}

	@Override
	public void updateNotice(Notice notice) {
		
		noticeMapper.updateNotice(notice);
	}

}
